package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 招生战队
 * </p>
 *
 * @author min
 * @since 2023-02-10
 */
@TableName("enroll_team")
@Data
public class EnrollTeam implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long pid;

    private Long schoolId;

    private String schoolName;

    private String name;

    private Integer yearPart;

    private Integer quarterNum;

    /**
     * 战队目标
     */
    private Integer goalNum;

    /**
     * 状态0关闭，1正常
     */
    private Integer status;

    private Integer sort;

    /**
     * 战队logo
     */
    private String logo;

    /**
     * 战队口号
     */
    private String slogan;

    /**
     * 队长id
     */
    private Long captainId;

    private LocalDate startDate;

    private LocalDate endDate;

    @TableField(exist = false)
    private List<Long> teacherIdList;

    @TableField(exist = false)
    private List<Staff> teacherList;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private BigDecimal inviteCount;

    @TableField(exist = false)
    private BigDecimal auditionCount;

    @TableField(exist = false)
    private BigDecimal bargainCount;

    @TableField(exist = false)
    private List<EnrollTeam> childNode;
}
